<template>
  <div class="home">
    <router-view></router-view>
    <van-tabbar
      v-if="$route.meta.needTab"
      active-color="#e40137"
      inactive-color="#b4b4bd"
      class="tabbar"
      route
      placeholder
    >
      <van-tabbar-item to="/home/company">
        <span class="txt">公司</span>
        <template #icon>
          <i class="iconfont">&#xe63d;</i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/home/question">
        <span class="txt">刷题</span>
        <template #icon>
          <i class="iconfont">&#xe63f;</i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/home/find">
        <span class="txt">发现</span>
        <template #icon>
          <i class="iconfont">&#xe646;</i>
        </template></van-tabbar-item
      >
      <van-tabbar-item to="/home/my"
        ><span class="txt">我的</span>
        <template #icon>
          <i class="iconfont">&#xe645;</i>
        </template></van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>
<script>
export default {}
</script>

<style lang="less" scoped>
.home {
  height: 100%;
  .tabbar {
    .iconfont {
      font-size: 28px;
    }
    .txt {
      font-size: 12px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: center;
      line-height: 14px;
      letter-spacing: 0px;
    }
  }
}
</style>
